package com.caesar.prac_Lambda;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * @author caesar
 * @date 2025/7/19
 * @Description:
 * @apiNote
 */
public class exer2 {
    public static void main(String[] args) {
        ArrayList<Character> list = new ArrayList<>();
        for(char ch='a';ch<='z';ch++){
            list.add(ch);
        }
        list.forEach(c -> System.out.print(c+" "));
        System.out.println();
        System.out.println("=====================");
        HashMap<Integer,String> map = new HashMap<>();
        map.put(1,"Java");
        map.put(2,"C");
        map.put(3,"Python");
        map.put(4,"C++");
        map.put(5,"C#");
        map.forEach((k,v) -> System.out.println(k+"--"+v));
    }
}
